<template>
	<div>
		<div class="content-top">
			<span class="h1">数据填报</span>
			<span class="h2">款项报销</span>
		</div>
		<div class="contens" style="margin-top: 20px;">
			<div class="left-content " style="margin-bottom: 20px;">
				<div class="clearfix">
					<p class="fl titles">款项报销</p>
					<el-button type="primary" size="small" @click="addZslb()" style='margin-top: 5px; margin-left: 10px;'>报销</el-button>
					<div class="fr" >
						<el-input v-model="input" placeholder="请输入内容" style="width:217px;"></el-input>
						<el-button type="primary">查询</el-button>
					</div>
				</div>
			</div>
			<el-table :data="Datas" border style="width: 100%">
				<el-table-column prop="Nub" label="单据号" width="180">
				</el-table-column>
				<el-table-column prop="data" label="日期" width="180">
				</el-table-column>
				<el-table-column prop="ONes" label="报销人" width="180">
				</el-table-column>
				<el-table-column label="操作">
					<template slot-scope="scope">
						<el-dropdown trigger="click">
							<span class="el-dropdown-link"><el-button type="primary">操作<i class="el-icon-arrow-down el-icon--right"></i></el-button></span>
							<el-dropdown-menu slot="dropdown">
								<el-dropdown-item>
									<el-button size="small" type="primary" @click='look()'>查看</el-button>
								</el-dropdown-item>
								<el-dropdown-item>
									<el-button size="small" type="danger" @click='del(scope.$index)'>删除</el-button>
								</el-dropdown-item>
							</el-dropdown-menu>
						</el-dropdown>
					</template>
				</el-table-column>
			</el-table>
			<div class="pages">
				<el-pagination background layout="prev, pager, next" :total="1">
				</el-pagination>
			</div>
		</div>
		
		<el-dialog title="报销明细" :visible.sync="lands1" width="50%">
			<div>
				<el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
				  <el-form-item label="单据号:">
				    <el-input v-model="formLabelAlign.num"></el-input>
				  </el-form-item>
				  <el-form-item label="报销人:">
				    <el-input v-model="formLabelAlign.ONes"></el-input>
				  </el-form-item>
				  <el-form-item label="日 期:">
				    <el-input v-model="formLabelAlign.Date"></el-input>
				  </el-form-item>
				</el-form>
			</div>
			<el-table :data="Datas1" border style="width: 100%">
					<el-table-column prop="houers" label="户主">
					</el-table-column>
					<el-table-column prop="name" label="姓名">
					</el-table-column>
					<el-table-column prop="pro" label="征收项目" >
					</el-table-column>
					<el-table-column prop="money" label="金额">
					</el-table-column>
			</el-table>
			
			<span slot="footer" class="dialog-footer">
			    <el-button @click="lands1 = false">取 消</el-button>
			    <el-button type="primary" @click="lands1 = false">确 定</el-button>
		    </span>
		</el-dialog>
	</div>
</template>
<script></script>
<script>
	export default {
		name: 'pay',
		data() {
			return {
				labelPosition:'left',
				lands1:false,
				input:'',
				Datas:[{
					Nub:"1",
					data:'2018-3-7',
					ONes:'李四',
				},{
					Nub:"1",
					data:'2018-3-7',
					ONes:'李四',
				},{
					Nub:"1",
					data:'2018-3-7',
					ONes:'李四',
				}],
				formLabelAlign:{
					num:"1",
					Date:'2018-3-7',
					ONes:'李四',
				},
				Datas1:[{
					houers:'王五',
					name:'李四',
					pro:'土地',
					money:1000,
				}]
			}
		},
		methods: {
			//查看
			look(){
				this.lands1 = true
			},
			del(index){
				this.Datas.splice(index,1)
			}
		}
	}
</script>

<style>
.asds{
	position: relative;
	z-index: 9999;
}
</style>